#include "UGUI.h"
#include "UGameState.h"
#include "UBuilding.h"
#include "UTerrain.h"
#include "UCursorState.h"

using namespace std;

TGUI::TGUI(TGameStateRefConst gameState)
{
	GameState = gameState;

	GUITerrain = new TGUITerrain(GameState->GetTerrain());
	Cursor = new TSelectCursor();
}

void TGUI::Draw()
{
	GUITerrain->Draw();
	for (uint i=0; i< GUIBuildings.size(); ++i)
		GUIBuildings[i]->Draw();
	
}
